<?php

namespace app\api\validate;

use think\Validate;

class Ranking extends Validate
{
    protected $rule = [
        ['types',       'number',               '类型有误'],
        ['time',        'number|in:1,2,3,4',    '类型有误|类型有误'],
    ];

    protected $scene = [
        'lists'          => ['types', 'time'],
    ];
}
